package mlz.ifdemo;

//if分支
//需求：测量用户体温，发现体温高于37度就报警.
public class IfDemo01 {
    public static void main(String[] args) {
        double d = 20;
        if(d > 37)
            System.out.println("体温温度异常");


        double d1 = 3.0-2.9;
        System.out.println(d1);//0.10000000000000009
        double d2 = 5.0-4.9;
        System.out.println(d2);//0.09999999999999964


    }
}
